<?php
if ($_GET['pg'] == 'categories' && $_GET['id'] == '2'){ //categorie corporate
    include 'corporate.php';
} elseif ($_GET['pg'] == 'top'){ //top
    include 'restul.php';
} elseif ($_GET['pg'] == 'news'){ //news
    include 'news.php';
} elseif ($_GET['pg'] == 'pages'){ //pagini
    include 'pages.php';
} elseif ($_GET['pg'] == 'offers'){ //oferte
    include 'oferte.php';
} elseif ($_GET['pg'] == 'categories'&& $_GET['id'] != '2'){ //categorii fara corporate
    include 'categorii.php';
} elseif (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_GET['pg'] == ''){ //homepage
    include 'home.php';
} elseif (strpos($_SERVER['REQUEST_URI'], "/contact.html")){ //contact
    include 'pages.php';
} elseif ($_GET['pg'] == 'search' || $_GET['pg'] == 'news_trends' || $_GET['pg'] == 'tops'){
    include 'home.php';
}
?>